import http from '@/utils/http';

const currency = {
  //获取币种集合
  getCurrencys() {
    let url = '/Currency/GetCurrencys';
    return http.get(url);
  },
  //币种视图
  query(params: any) {
    let url = '/Currency/Query';
    return http.post(url, params);
  },
  //币种详情
  detail(id: Number) {
    let url = '/Currency/Detail';
    let params = { id: id };
    return http.get(url, params);
  },
  //币种保存
  save(role: Object) {
    let url = '/Currency/Save';
    return http.post(url, role);
  },
};
export default currency;
